<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var obj=new Object();
			obj.name="大黄";
			obj.age=5;
			obj.show=function(){
				alert("这条狗的名字是"+this.name+",age="+this.age);
			}
			obj.show();
			obj.age=3;
			obj.show();
			// var obj2=new Object();
			// obj2.name="老李";
			// obj2.sex="女";
			var obj3={
				name:"老刘",
				age:29,
				sex:"男",
				showSelf:function(){
					alert(this.name+","+this.age+","+this.sex);
				}
			}
			obj3.age++;
			obj3.showSelf();
		</script>
	</head>
	<body>
	</body>
</html>